/*
 * @lc app=leetcode.cn id=771 lang=typescript
 *
 * [771] 宝石与石头
 */

// @lc code=start
function numJewelsInStones(jewels: string, stones: string): number {
    let count = 0;
    for (let index = 0; index < stones.length; index++) {
        const element = stones[index];
        if (jewels.includes(element)) count++;
    }
    return count;
}
// @lc code=end
